package com.feishi.core.socket.common;

import com.feishi.core.socket.common.lifecycle.SocketSession;

import java.net.SocketAddress;

/**
 * @version 1.0
 * @auth caixq
 * @time 18-3-28 14:41
 **/
public interface SocketListener<T> {
    void onMsg(T msg);

    void onConnect(SocketAddress localAddress);

    void onDisconnect(SocketAddress localAddress);


    default  void init(SocketSession session){};
}
